/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package fwdisp.gui.tabs;


import fwdisp.gui.tabs.statistics.MonthlyStatisticPanel;
import fwdisp.gui.tabs.statistics.OtherCityStats;
import fwdisp.gui.tabs.statistics.TimeStatisticsPanel;
import fwdisp.gui.tabs.statistics.TypeStatisticsPanel;
import fwdisp.gui.tabs.statistics.WeekDayStatisticsPanel;
import settings.MainSettingsManager;
import settings.collections.elements.PictureManager;
import imagetabpaine.ImageTabPanel;
import imagetabpaine.Tab;
import imagetabpaine.TabColors;
import java.awt.BorderLayout;
import javax.swing.JButton;

/**
 *
 * @author rbs
 */
public class StatisticsTab extends ImageTabPanel{

    private PictureManager pics;

    public StatisticsTab() {
        super(100, BorderLayout.NORTH);

        TabColors sec_row = MainSettingsManager.getSetting().getColorSettings().secRow;

        setTabColors(sec_row);

        this.setName("Statistiken");

        pics = new PictureManager();

        MonthlyStatisticPanel monthlyStatisticPanel = new MonthlyStatisticPanel();
        OtherCityStats otherCityStats = new OtherCityStats();
        TimeStatisticsPanel timeStatisticsPanel = new TimeStatisticsPanel();
        TypeStatisticsPanel typeStatisticsPanel = new TypeStatisticsPanel();
        WeekDayStatisticsPanel weekDayStatisticsPanel = new WeekDayStatisticsPanel();

        setImageSize(50);
        setTextPosition(JButton.CENTER, JButton.BOTTOM);
        AddTab(new Tab(timeStatisticsPanel, pics.getImage("statistics", "day.png")));
        AddTab(new Tab(weekDayStatisticsPanel, pics.getImage("statistics", "week.png")));
        AddTab(new Tab(monthlyStatisticPanel, pics.getImage("statistics", "month.png")));
        AddTab(new Tab(typeStatisticsPanel, pics.getImage("statistics", "circle_chart.png")));
        AddTab(new Tab(otherCityStats, pics.getImage("statistics", "circle_chart.png")));
        setTopBorder(false);
        finizialize();

        setVisible(true);

    }

}
